package yuan;

import com.alibaba.csp.sentinel.adapter.spring.webmvc.callback.BlockExceptionHandler;
import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version: 1.0
 * @Description: TODO
 * @author: zZmH
 * @date: 2020/09/20 18:06
 */


@SpringBootApplication
@EnableDiscoveryClient
@Slf4j
public class Gateway8777 {

    public static void main(String[] args) {
        SpringApplication.run(Gateway8777.class, args);

    }

    @RestController
    @RequestMapping("/gateway")
    class RestControlleer{

        @GetMapping("/get")
        public String gets(){
            return "gateway gets";
        }



    }

}
